package com.trainingcloud.utils;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class TaskUtil {
//    @Scheduled(cron = "* * 0/10 * * ?")
//    public void autoTest01(){
//        System.out.println("执行定时任务01，下一次10分钟后");

//    @Scheduled(cron = "* * 0/15 * * ?")
//    public void autoTest02(){
//        System.out.println("执行定时任务02，下一次15分钟后");
//    }
}

